<%--
  Created by IntelliJ IDEA.
  User: awei
  Date: 2017/7/31
  Time: 15:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="/js/jquery-3.2.0.js"></script>
<html>
<head>
    <title>用户管理</title>
</head>
<body>
    <div>
        <label>用户添加</label>
        <button onclick="openForm()">添加用户</button>
    </div>

    <div id="fileForm" style="display: none">
        <form method="post" action="/file/uploadFile" enctype="multipart/form-data" >
            <input type="text" name="userName" />
            <input type="file" name="file" />
            <button type="submit">提交</button>
        </form>
    </div>

<script>

    function openForm() {
        $('#fileForm').show();
    }
</script>
</body>
</html>
